src/Rossedman/Teamwork/AbstractObject.php
protected function areArgumentsValid($args, array $accepted)
    {
        if ($args == null)
        {
            return;
        }

        foreach ($accepted as $accept)
        {
            if (array_key_exists($accept, $args))
            {
                return true;
            }
        }

        throw new \InvalidArgumentException('This call only accepts these arguments: ' . implode(" | ",$accepted));
    }
protected function areArgumentsValid($args, array $accepted)
    {
        if ($args == null)
        {
            return;
        }

        foreach ($accepted as $accept)
        {
            if (array_key_exists($accept, $args))
            {
                return true;
            }
        }

        throw new \InvalidArgumentException('This call only accepts these arguments: ' . implode(" | ",$accepted));
    }
protected function areArgumentsValid ( $ args , array $ accepted ) { if ( $ args == null ) { return ; } foreach ( $ accepted as $ accept ) { if ( array_key_exists ( $ accept , $ args ) ) { return true ; } } throw new \ InvalidArgumentException ( 'This call only accepts these arguments: ' . implode ( " | " , $ accepted ) ) ; }
Are Arguments Valid

@param array    $args
@param string[] $accepted

@return null|bool
Are Arguments Valid