ApiPlatform\Core\Tests\Fixtures\TestBundle\Entity\UuidIdentifierDummy::setName PHP Method

setName() public method

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

Usage Example

コード例 #1
0
ファイル: FeatureContext.php プロジェクト: api-platform/core
 /**
  * @Given there is a Dummy Object mapped by UUID
  */
 public function thereIsADummyObjectMappedByUUID()
 {
     $dummy = new UuidIdentifierDummy();
     $dummy->setName('My Dummy');
     $dummy->setUuid('41B29566-144B-11E6-A148-3E1D05DEFE78');
     $this->manager->persist($dummy);
     $this->manager->flush();
 }