public function setShared($shared)
    {
        $this->changes['shared'] = true;

        $this->shared = (bool) $shared;

        return $this;
    }
public function setShared($shared)
    {
        $this->changes['shared'] = true;

        $this->shared = (bool) $shared;

        return $this;
    }
public function setShared ( $ shared ) { $ this -> changes [ 'shared' ] = true ; $ this -> shared = ( bool ) $ shared ; return $ this ; }
Sets if the service must be shared or not.

@param bool $shared Whether the service must be shared or not

@return $this
Sets if the service must be shared or not .