public function named($name)
    {
        if (null !== $this->name) {
            throw new LogicException('Already named');
        }

        $this->name = $name;

        return $this;
    }
public function named($name)
    {
        if (null !== $this->name) {
            throw new LogicException('Already named');
        }

        $this->name = $name;

        return $this;
    }
public function named ( $ name ) { if ( null !== $ this -> name ) { throw new LogicException ( 'Already named' ) ; } $ this -> name = $ name ; return $ this ; }
Define the name.

@param string $name

@return static
Define the name .