public function setPlatform($platform)
    {
        if (!in_array($platform, array(Software::PLATFORM_MAC, Software::PLATFORM_IOS), true)) {
            throw new \InvalidArgumentException(sprintf('Undefined software platform "%s".', $platform));
        }

        $this->platform = $platform;

        return $this;
    }
public function setPlatform($platform)
    {
        if (!in_array($platform, array(Software::PLATFORM_MAC, Software::PLATFORM_IOS), true)) {
            throw new \InvalidArgumentException(sprintf('Undefined software platform "%s".', $platform));
        }

        $this->platform = $platform;

        return $this;
    }
public function setPlatform ( $ platform ) { if ( ! in_array ( $ platform , array ( Software :: PLATFORM_MAC , Software :: PLATFORM_IOS ) , true ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Undefined software platform "%s".' , $ platform ) ) ; } $ this -> platform = $ platform ; return $ this ; }
Set software platform

@param integer $platform

@return Software

@throws \InvalidArgumentException
Set software platform