コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getEdd($chartIdentifier)
 {
     $url = sprintf('/api/Storage/Chart/%s/EDD', $chartIdentifier);
     $data = $this->doRequest($url);
     return Edd::createFromJson($data);
 }
コード例 #2
0
 public function testToStringReturnsOnlyYmd()
 {
     $edd = Edd::createNew()->setEdd(new DateTime('2015-03-06 11:28:56'));
     $this->assertEquals('2015-03-06', (string) $edd);
 }