public function add($name, $type)
    {
        $property = clone self::$propertyPrototype;

        $this->collection[$name] = $property->setName($name)->setRawType($type);

        return $this;
    }
public function add($name, $type)
    {
        $property = clone self::$propertyPrototype;

        $this->collection[$name] = $property->setName($name)->setRawType($type);

        return $this;
    }
public function add ( $ name , $ type ) { $ property = clone self :: $ propertyPrototype ; $ this -> collection [ $ name ] = $ property -> setName ( $ name ) -> setRawType ( $ type ) ; return $ this ; }
Add a single property and type

@param string $name
@param string $type

@return PropertyDefinitionCollection
Add a single property and type