public function setName($name)
    {
        $this->name = $name;

        if ($this->id === null) {
            $this->id = $name;
        }
    }
public function setName($name)
    {
        $this->name = $name;

        if ($this->id === null) {
            $this->id = $name;
        }
    }
public function setName ( $ name ) { $ this -> name = $ name ; if ( $ this -> id === null ) { $ this -> id = $ name ; } }
Sets the name of the Behavior

@param string $name the name of the behavior
Sets the name of the Behavior