コード例 #1
0
 protected function getValueSerialization(SelectionRequest $request)
 {
     if ($request instanceof PropertySelection) {
         return array('property' => $request->getPropertyId()->toArray());
     }
     if ($request instanceof SubjectSelection) {
         return array();
     }
     throw new UnsupportedObjectException($request);
 }
コード例 #2
0
 /**
  * @dataProvider instanceProvider
  *
  * @since 1.0
  *
  * @param SelectionRequest $object
  */
 public function testGetHashStability(SelectionRequest $object)
 {
     $this->assertEquals($object->getHash(), $object->getHash());
 }