public function addAcceptable(string $acceptable, float $priority = 1.0): self
    {
        if (0 > $priority || 1.0 < $priority) {
            throw new \InvalidArgumentException(
                    'Invalid priority, must be between 0 and 1.0'
            );
        }

        $this->acceptables[$acceptable] = $priority;
        return $this;
    }
public function addAcceptable(string $acceptable, float $priority = 1.0): self
    {
        if (0 > $priority || 1.0 < $priority) {
            throw new \InvalidArgumentException(
                    'Invalid priority, must be between 0 and 1.0'
            );
        }

        $this->acceptables[$acceptable] = $priority;
        return $this;
    }
public function addAcceptable ( string $ acceptable , float $ priority = 1.0 ) : self { if ( 0 > $ priority || 1.0 < $ priority ) { throw new \ InvalidArgumentException ( 'Invalid priority, must be between 0 and 1.0' ) ; } $ this -> acceptables [ $ acceptable ] = $ priority ; return $ this ; }
add an acceptable to the list

@param   string  $acceptable
@param   float   $priority    defaults to 1.0
@return  \stubbles\peer\http\AcceptHeader
@throws  \InvalidArgumentException
add an acceptable to the list