LibCloud\Compute\Model\Node::getId PHP Method

getId() public method

public getId ( ) : integer
return integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Exemplo n.º 1
0
 public function updateNode(Node $node, ParameterBag $parameters)
 {
     switch ($parameters->get('action')) {
         case 'passwordReset':
             return $this->digitalocean->droplet()->passwordReset($node->getId());
         case 'enableBackups':
             return $this->digitalocean->droplet()->enableBackups($node->getId());
         case 'disableBackups':
             return $this->digitalocean->droplet()->disableBackups($node->getId());
         case 'rename':
             return $this->digitalocean->droplet()->rename($node->getId(), $parameters->get('name'));
         case 'enableIpv6':
             return $this->digitalocean->droplet()->enableIpv6($node->getId());
         case 'enablePrivateNetworking':
             return $this->digitalocean->droplet()->enablePrivateNetworking($node->getId());
     }
 }
All Usage Examples Of LibCloud\Compute\Model\Node::getId