public function setRequiredTypes(array $types)
    {
        $this->required = array_merge($this->required, $types);
        $this->requiredTypes = $types;

        return $this;
    }
public function setRequiredTypes(array $types)
    {
        $this->required = array_merge($this->required, $types);
        $this->requiredTypes = $types;

        return $this;
    }
public function setRequiredTypes ( array $ types ) { $ this -> required = array_merge ( $ this -> required , $ types ) ; $ this -> requiredTypes = $ types ; return $ this ; }
Set required types

@param array $types
@return $this
Set required types