src/Api/Trophy.php
public function earnedDate() : ?\DateTime
    {
        if (!$this->earned()) return null;

        return new \DateTime(
            $this->comparing() ?
            $this->trophy->comparedUser->earnedDate :
            $this->trophy->fromUser->earnedDate
        );
    }
public function earnedDate() : ?\DateTime
    {
        if (!$this->earned()) return null;

        return new \DateTime(
            $this->comparing() ?
            $this->trophy->comparedUser->earnedDate :
            $this->trophy->fromUser->earnedDate
        );
    }
public function earnedDate ( ) : ? \ DateTime { if ( ! $ this -> earned ( ) ) return null ; return new \ DateTime ( $ this -> comparing ( ) ? $ this -> trophy -> comparedUser -> earnedDate : $ this -> trophy -> fromUser -> earnedDate ) ; }
Gets when the User earned the Trophy.

@return \DateTime|null
Gets when the User earned the Trophy .