Newscoop\Entity\User::setFirstName PHP Method

setFirstName() public method

Set first name
public setFirstName ( string $first_name ) : Newscoop\Entity\User
$first_name string
return Newscoop\Entity\User
    public function setFirstName($first_name)
    {
        $this->first_name = (string) $first_name;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function setUp()
 {
     parent::setUp('Newscoop\\Entity\\User', 'Newscoop\\Entity\\Acl\\Role', 'Newscoop\\Entity\\UserAttribute');
     $this->auth = $this->getMockBuilder('Zend_Auth')->disableOriginalConstructor()->getMock();
     $this->repository = $this->em->getRepository('Newscoop\\Entity\\User');
     $this->service = new UserService($this->em, $this->auth);
     $this->user = new User();
     $this->user->setEmail('*****@*****.**');
     $this->user->setUsername('test');
     $this->user->setFirstName('Foo');
     $this->user->setLastName('Bar');
 }
All Usage Examples Of Newscoop\Entity\User::setFirstName