public function hasRequiredKeys(array $input)
    {
        $control = array_intersect($this->required, array_keys($input));

        if ($this->required !== $control)
        {
            return $this->required;
        }

        return true;
    }
public function hasRequiredKeys(array $input)
    {
        $control = array_intersect($this->required, array_keys($input));

        if ($this->required !== $control)
        {
            return $this->required;
        }

        return true;
    }
public function hasRequiredKeys ( array $ input ) { $ control = array_intersect ( $ this -> required , array_keys ( $ input ) ) ; if ( $ this -> required !== $ control ) { return $ this -> required ; } return true ; }
Return TRUE when the input has the required keys, othewise it will return an arrays
containing the list of required keys

@param array $input

@return array|bool
Return TRUE when the input has the required keys othewise it will return an arrays containing the list of required keys