Reputation: 9299
How is it possible, to evaluate commands in php like Doctrine?
If I write this, Doctrine can handle it somehow, but I have no idea how:
/**
* @Column(type="string", name="title")
* @var string
*/
private $title;
Upvotes: 1
Views: 89
Reputation: 1188
Doctrine uses Doctrine Annotations library. Under the hood it uses reflection to get the comments and parses them.
If you want to implement full fledged annotation support in your project then it's the easiest to use this library, otherwise you can try to parse doc comments by yourself.
Upvotes: 2