public function read($argument)
    {
        // Get Reflection.
        $reflection = $this->getReflectionFrom($argument);

        // We have some specific annotations to be read.
        if ($this->wantsSpecificAnnotation()) {
            return $this->readSpecificAnnotationFor($reflection);
        }

        // We require to read all annotations.
        return $this->readAllAnnotationsFor($reflection);
    }
public function read($argument)
    {
        // Get Reflection.
        $reflection = $this->getReflectionFrom($argument);

        // We have some specific annotations to be read.
        if ($this->wantsSpecificAnnotation()) {
            return $this->readSpecificAnnotationFor($reflection);
        }

        // We require to read all annotations.
        return $this->readAllAnnotationsFor($reflection);
    }
public function read ( $ argument ) { // Get Reflection. $ reflection = $ this -> getReflectionFrom ( $ argument ) ; // We have some specific annotations to be read. if ( $ this -> wantsSpecificAnnotation ( ) ) { return $ this -> readSpecificAnnotationFor ( $ reflection ) ; } // We require to read all annotations. return $ this -> readAllAnnotationsFor ( $ reflection ) ; }
Reads annotations for a given object.

@param mixed $argument

@return \Illuminate\Support\Collection
Reads annotations for a given object .