a "Sith Lord Lightsaber", which costs £5 When I add the "Sith Lord Lightsaber" to the basket Then I should have 1 product in the basket And the overall basket price should be £9
private function __construct(string $username) { $this->username = $username; } public static function fromString(string $username) : self { return new self($username); } public static function fromUser(User $user) : self { return new self($user->getUsername()); } }