Depending on exactly why you want this, the answer might be "you can't", "you can build it yourself with a fair amount of effort", or "you can put it in the docblock and use an IDE or command-line tool to verify it". I haven't read through all of the linked answers, but I imagine they cover most of the options between them.
ArrayObjectwhich behaves like an array.public PersonCollection $friends;