Newscoop\Entity\User::getId PHP Method

getId() public method

Get id
public getId ( ) : integer
return integer
    public function getId()
    {
        return (int) $this->id;
    }

Usage Example

Beispiel #1
0
 public function testSendPasswordRestoreToken()
 {
     $this->markTestSkipped();
     // @todo refactor the view dependency
     $this->service->sendPasswordRestoreToken($this->user);
     $this->assertRegExp('#user/' . $this->user->getId() . '/token/[a-z0-9]{40}#i', $this->getEmailBody());
     $this->assertArrayHasKey('Subject', $this->getEmailHeaders());
 }
All Usage Examples Of Newscoop\Entity\User::getId