web/src/Model/Server.php
Corne Oppelaar ebddf2f031 [wip]
2016-06-12 19:48:33 +02:00

23 lines
512 B
PHP

<?php
namespace Eater\Glim\Model;
use Eater\Glim\Model\Base\Server as BaseServer;
/**
* Skeleton subclass for representing a row from the 'Server' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class Server extends BaseServer
{
public function getNetmaskIp()
{
return long2ip(-1 << (32 - (int)$this->getNetmask()));
}
}