public function setRequiredPropertyTypes(string $property, $types)
    {
        $this->required[$property] = $types;
        $this->requiredTypes[$property] = $types;

        return $this;
    }
public function setRequiredPropertyTypes(string $property, $types)
    {
        $this->required[$property] = $types;
        $this->requiredTypes[$property] = $types;

        return $this;
    }
public function setRequiredPropertyTypes ( string $ property , $ types ) { $ this -> required [ $ property ] = $ types ; $ this -> requiredTypes [ $ property ] = $ types ; return $ this ; }
Set required types for property

@param string $property
@param        $types
@return $this
Set required types for property