title: Uncaught exception 'ReflectionException' with message 'Cannot set readonly property ezcReflectionClass::$class'
body: <p>I am trying to find all the unused code in my project.So  I have gone through many dead code detectors like PHPMD, PHPDCD, Xdebug. Finally i settled with phpcallgraph. I have followed these links: <strong>http://phpcallgraph.sourceforge.net/ <a href="http://phpcallgraph.svn.sourceforge.net/viewvc/phpcallgraph/trunk/readme.txt" rel="nofollow">http://phpcallgraph.svn.sourceforge.net/viewvc/phpcallgraph/trunk/readme.txt</a></strong>
  done the same .....</p>
  
  <p>But i ended up with the above error in the below code:</p>
  
  <pre><code>   /**
       * Constructs a new ezcReflectionClass object
       *
       * @param string|object|ReflectionClass $argument
       *        Name, instance or ReflectionClass object of the class to be
       *        reflected
       */
      public function __construct( $argument )
      {
          if ( !$argument instanceof ReflectionClass )
          {
              parent::__construct( $argument );
          }
          $this-&gt;class = $argument; --&gt; error showing up here
          $this-&gt;docParser = ezcReflectionApi::getDocParserInstance();
          $this-&gt;docParser-&gt;parse( $this-&gt;getDocComment() );
      }
  </code></pre>
  
  <p>Tried to figure out but couldnt get my head around it ....Thought someone might have gone through same problem and might have got some solution... THank YOu</p>