public function findObject($property, $value) {
        foreach ($this as $object) {
            if (property_exists($object, $property)) {
                if ($value === $object->$property)
                    return $object;
            }
        }
    }
public function findObject($property, $value) {
        foreach ($this as $object) {
            if (property_exists($object, $property)) {
                if ($value === $object->$property)
                    return $object;
            }
        }
    }
public function findObject ( $ property , $ value ) { foreach ( $ this as $ object ) { if ( property_exists ( $ object , $ property ) ) { if ( $ value === $ object -> $ property ) return $ object ; } } }
Finds the first object that the given property has the given value
@param string $property
@param mixed $value
@return mixed
Finds the first object that the given property has the given value