Sulu\Bundle\ContactBundle\Entity\EmailType::setName PHP Method

setName() public method

Set name.
public setName ( string $name ) : EmailType
$name string
return EmailType
    public function setName($name)
    {
        $this->name = $name;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: ContactContext.php プロジェクト: Silwereth/sulu
 /**
  * @Given the email type :type exists
  */
 public function theEmailTypeExists($type)
 {
     $emailType = new EmailType();
     $emailType->setName($type);
     $this->getEntityManager()->persist($emailType);
     $this->getEntityManager()->flush();
 }
All Usage Examples Of Sulu\Bundle\ContactBundle\Entity\EmailType::setName