コード例 #1
0
 /**
  * @JMS\VirtualProperty
  * @JMS\SerializedName("Images")
  * @JMS\XmlList(inline = false, entry = "Image")
  */
 public function getElements()
 {
     return parent::getElements();
 }
コード例 #2
0
 public function testGetElements()
 {
     $collection = new ImageUriCollection();
     $collection->add(new ImageUri('http://host.com/img.jpg'));
     $this->assertEquals(1, count($collection->getElements()));
 }