public function create(UserInterface $user)
    {
        $entity = static::ENTITY_CLASSNAME;

        $activation = new $entity($user);

        $this->save($activation);

        return $activation;
    }
public function create(UserInterface $user)
    {
        $entity = static::ENTITY_CLASSNAME;

        $activation = new $entity($user);

        $this->save($activation);

        return $activation;
    }
public function create ( UserInterface $ user ) { $ entity = static :: ENTITY_CLASSNAME ; $ activation = new $ entity ( $ user ) ; $ this -> save ( $ activation ) ; return $ activation ; }
Create a new activation record and code.

@param UserInterface $user
@return DefaultActivation
Create a new activation record and code .