Reader::readClass PHP Method

readClass() protected method

protected readClass ( )
    protected function readClass()
    {
        $classname = ClassManager::getClass($this->privateReadStringWithoutTag());
        $count = (int) $this->stream->readuntil(Tags::TagOpenbrace);
        $props = new SplFixedArray($count);
        for ($i = 0; $i < $count; ++$i) {
            $props[$i] = $this->privateReadString();
        }
        $this->stream->skip(1);
        $this->classref[] = array($classname, $props);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @test
  */
 public function testReadClass()
 {
     $this->compareBag($this->reader->readClass('GSoares\\Annotation\\Sample\\SampleClass'));
 }