public function createStateLine($name, $description)
    {
        $stateLine = $this
            ->stateLineFactory
            ->create()
            ->setName($name)
            ->setDescription($description);

        return $stateLine;
    }
public function createStateLine($name, $description)
    {
        $stateLine = $this
            ->stateLineFactory
            ->create()
            ->setName($name)
            ->setDescription($description);

        return $stateLine;
    }
public function createStateLine ( $ name , $ description ) { $ stateLine = $ this -> stateLineFactory -> create ( ) -> setName ( $ name ) -> setDescription ( $ description ) ; return $ stateLine ; }
Create an state line given its name and description.

@param string $name        Name
@param string $description Description

@return StateLineInterface State Line
Create an state line given its name and description .