Exemplo n.º 1
0
 public static function isCollection(Property $property)
 {
     if ($property->getType() instanceof Array_) {
         return true;
     }
 }
Exemplo n.º 2
0
 /**
  * @covers ::__construct
  * @covers ::getType
  */
 public function testHasType()
 {
     $expected = new String_();
     $fixture = new Property('myProperty', $expected);
     $this->assertSame($expected, $fixture->getType());
 }