I have to define the type of a property of my class say Bb as another class Attach. I tried writing it as below-
<?php
class Attach{
var $attachmentId;
var $displayName;
var $hyperlinkText;
var $content;
}
class Bb{
var Attach $attachment;
}
But it is giving me an error -
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /home/......
What is the correct way to achieve it ?