Advertisement
Guest User

Untitled

a guest
May 4th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. if (is_string($proposal)) {
  2. $className = '\Caxy\ProposalBundle\Entity\\' . $proposal;
  3.  
  4. if (!class_exists($className)) {
  5. return false;
  6. }
  7.  
  8. $class = new \ReflectionClass($className);
  9. $statuses = $class->getStatusPropertyValue('statuses');
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement