public function purge()
    {
        if (!isset($this->actions['purge'])) {
            throw new InvalidActionException(sprintf('Impossible to purge the container "%s" (current state "%s").', $this->id, $this->state));
        }

        $this->client->post($this->actions['purge']);
    }
public function purge()
    {
        if (!isset($this->actions['purge'])) {
            throw new InvalidActionException(sprintf('Impossible to purge the container "%s" (current state "%s").', $this->id, $this->state));
        }

        $this->client->post($this->actions['purge']);
    }
public function purge ( ) { if ( ! isset ( $ this -> actions [ 'purge' ] ) ) { throw new InvalidActionException ( sprintf ( 'Impossible to purge the container "%s" (current state "%s").' , $ this -> id , $ this -> state ) ) ; } $ this -> client -> post ( $ this -> actions [ 'purge' ] ) ; }
Purges the container.

@throws InvalidActionException if the container can not be purged.
Purges the container .